package com.neusoft.yuejian12.yuejian_12.base;


import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

import static com.neusoft.yuejian12.yuejian_12.constant.Constant.BASE_URL;


public class RetrofitHelper extends RetrofitBaseModel {
    private  static Retrofit retrofit;
    public  <T> T  builder(Class<T> service)
    {

        retrofit=new Retrofit.Builder()
                .baseUrl(BASE_URL)
                .addConverterFactory(GsonConverterFactory.create())
                .build();
        return retrofit.create(service);
    }



}
